﻿<?php
require_once("../openresumelib/class.resume.php");

$rsm = new Resume;
$rsm->firstName = "Bar";
$rsm->lastName = "Foo";

$rsm->email = "foo@bar.com";
$rsm->handPhoneCountryCode = "60";
$rsm->handPhoneNo = "1234567";
$rsm->telArea = "03";
$rsm->telNo = "12345678";
$rsm->websiteUrl = "http://foo.bar.com";

$rsm->address1 = "43, Petaling Street";
$rsm->address2 = "Happy Garden";
$rsm->postcode = "62000";
$rsm->city = "Brickfield";
$rsm->state = "Kuala Lumpur";
$rsm->country = "Malaysia";

$rsm->age = "28";
$rsm->dateOfBirth = "01 November 1983";
$rsm->dobDay = "01";
$rsm->dobMonth = "11";
$rsm->dobYear = "1983";
$rsm->gender = "Male";
$rsm->maritalStatus = "Single";
$rsm->nationality = "Malaysian";

$rsm->prInCountries[] = "Malaysia";
$rsm->prInCountries[] = "Singapore";
$rsm->prInCountries[] = "Australia";
$rsm->prInCountries[] = "New Zealand";

$rsm->preferredJobType_FullTime = true;
$rsm->preferredJobType_Contract = true;
$rsm->expectedMonthlySalaryCurrency = "Malaysia Ringgit";
$rsm->expectedMonthlySalaryAmount = "4000";
$rsm->willingToTravel = true;
$rsm->willingToRelocate = false;
$rsm->possessOwnTransport = true;

$rsm->additionalInfo = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas libero sapien, sodales eu suscipit sit amet, ornare pulvinar lacus. Maecenas diam nisl, faucibus in varius at, sodales eu libero. Curabitur lobortis vestibulum erat, at pulvinar lectus pretium eu. \n\n
Pellentesque ac nulla in nibh aliquam ullamcorper. Cras sed ante odio, sed vulputate ipsum. Nulla lacinia urna ac mauris facilisis dapibus.\n\n
Phasellus rutrum enim rutrum neque eleifend id placerat enim viverra. Maecenas at diam odio, non tincidunt tellus. Ut scelerisque, turpis vulputate aliquet luctus, mauris metus rhoncus lorem, at convallis ligula mauris eu est. Sed luctus tellus nec ligula venenatis non congue odio vulputate. \n\n
Aenean volutpat dolor pulvinar lorem pulvinar a iaculis elit egestas.";

$experienceA = new Experience;
$experienceA->companyName = "Aliquam Corp";
$experienceA->workingPeriodFromMonth = "Jun";
$experienceA->workingPeriodFromYear = "2005";
$experienceA->workingPeriodToMonth = "December";
$experienceA->workingPeriodToYear = "2006";
$experienceA->positionLevel = "Fresh/Entry Level";
$experienceA->primaryRole = "Trainee";
$experienceA->monthlySalaryCurrency = "Malaysian Ringgit";
$experienceA->monthlySalaryAmount = "500";
$experienceA->workDescription = "Donec cursus tortor eget ligula posuere ut sagittis leo molestie. Mauris nec diam leo. Sed at orci non mi malesuada tempus. Nunc non odio eu enim aliquam congue id eget nibh. Integer at mi erat.";
$rsm->experiences[] = $experienceA;

$experienceB = new Experience;
$experienceB->companyName = "Dolor Pulvinar Corp";
$experienceB->workingPeriodFromMonth = "Jun";
$experienceB->workingPeriodFromYear = "2006";
$experienceB->workingPeriodToMonth = "Jun";
$experienceB->workingPeriodToYear = "2007";
$experienceB->positionLevel = "Fresh/Entry Level";
$experienceB->teamSize = 3;
$experienceB->specialization = "IT/Computer - Software";
$experienceB->primaryRole = "Programmer";
$experienceB->industry = "Call Center / IT-Enabled Services / BPO";
$experienceB->monthlySalaryCurrency = "Malaysian Ringgit";
$experienceB->monthlySalaryAmount = "2000";
$experienceB->workDescription = "Cras sed ante odio sed vulputate ipsum. Maecenas at diam odio, non tincidunt tellus ut scelerisque turpis vulputate aliquet luctus, mauris metus rhoncus lorem.";
$rsm->experiences[] = $experienceB;

$skillA = new Skill;
$skillA->title = "PHP";
$skillA->yearsOfExperience = "4";
$skillA->proficiency = "Intermediate";
$rsm->skills[] = $skillA;

$skillB = new Skill;
$skillB->title = "2D Graphic Design";
$skillB->yearsOfExperience = "5";
$skillB->proficiency = "Advanced";
$rsm->skills[] = $skillB;

$skillC = new Skill;
$skillC->title = "XML";
$skillC->yearsOfExperience = "1";
$skillC->proficiency = "Beginner";
$rsm->skills[] = $skillC;

$qualificationA = new Qualification;
$qualificationA->qualificationLevel = "Bachelor's Degree";
$qualificationA->fieldOfStudy = "Computer Science/Information Technology";
$qualificationA->graduationYear = "2005";
$qualificationA->major = "Software Engineering and Game Design";
$qualificationA->institution = "Multimedia University";
$qualificationA->institutionCountry = "Malaysia";
$qualificationA->grade = "2nd Class Upper";
$rsm->qualifications[] = $qualificationA;

$qualificationB = new Qualification;
$qualificationB->qualificationLevel = "Diploma";
$qualificationB->fieldOfStudy = "Computer Science/Information Technology";
$qualificationB->graduationYear = "2001";
$qualificationB->major = "Computer Science";
$qualificationB->institution = "Informatic College";
$qualificationB->institutionCountry = "Malaysia";
$rsm->qualifications[] = $qualificationB;

$qualificationC = new Qualification;
$qualificationC->qualificationLevel = "Primary/Secondary School/SPM/\"O\" Level";
$qualificationC->fieldOfStudy = "Sciences";
$qualificationC->graduationYear = "2000";
$qualificationC->institution = "St Francis Institution";
$qualificationC->institutionCountry = "Malaysia";
$rsm->qualifications[] = $qualificationC;

$certA = new Certificate;
$certA->title = "PHP Certified Programmer";
$certA->obtainedYear = "2000";
$rsm->certs[] = $certA;

$certB = new Certificate;
$certB->title = "MySQL Certified Developer";
$certB->obtainedYear = "2001";
$rsm->certs[] = $certB;

$certC = new Certificate;
$certC->title = "Apache Certified Admin";
$certC->obtainedYear = "2001";
$rsm->certs[] = $certC;

$languageA = new Language;
$languageA->language = "English";
$languageA->spokenRating = 10;
$languageA->writtenRating = 9;
$rsm->languages[] = $languageA;

$languageB = new Language;
$languageB->language = "Mandarin";
$languageB->spokenRating = 9;
$languageB->writtenRating = 8;
$rsm->languages[] = $languageB;

$languageC = new Language;
$languageC->language = "Bahasa Malaysia";
$languageC->spokenRating = 9;
$languageC->writtenRating = 8;
$rsm->languages[] = $languageC;

$referenceA = new Reference;
$referenceA->title = "Mr Alpha";
$referenceA->company = "Alpha Corp";
$referenceA->phone = "0123445595";
$referenceA->email = "alpha@mail.com";
$referenceA->relationship = "My neighbour";
$rsm->references[] = $referenceA;

$referenceB = new Reference;
$referenceB->title = "Miss Beta";
$referenceB->company = "Beta University";
$referenceB->phone = "0103445525";
$referenceB->email = "beta@mail.com";
$referenceB->relationship = "My lecturer in uni time";
$rsm->references[] = $referenceB;

echo $rsm->outputAsPlaintextFile();